package com.zzyl.service;

import com.aliyun.iot20180120.models.*;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceVo;

/**
 * @author sjqn
 */
public interface DeviceService {

    /**
     * 从物联网平台同步产品列表
     */
    void syncProductList();
//查询所有的产品列表
    Object allProduct();
//添加设备
    Object registerDevice(DeviceDto deviceDto);

//分页查询
    PageResponse<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);
    //根据条件查询
    ResponseResult<DeviceVo> queryDeviceDetail(QueryDeviceDetailRequest request);


    ResponseResult QueryThingModelPublished(QueryThingModelPublishedRequest request);

    ResponseResult QueryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);
//按天查询

    Object queryDeviceDataListByDay(String iotId, String functionId, Long startTime, Long endTime);
//按周查询
    Object queryDeviceDataListByWeek(String iotId, String functionId, Long startTime, Long endTime);
}